"use client";
import React from "react";
import { Button, Flex, Result } from "antd";

export default function NotFound() {
  return (
    <Flex justify="center" align="center" style={{ height: "100vh" }}>
      <Result
        status="404"
        title="404"
        subTitle="对不起，您访问的页面不存在"
        extra={
          <Button onClick={() => window.history.back()} type="primary">
            返回上一页
          </Button>
        }
      />
    </Flex>
  );
}
